import React, { useEffect } from "react";
import { useGlobalState } from '@jiatuan/hooks';
import { useStripes } from '@jiatuan/yunhan-core';

export default function EventBus() {
    const state = useGlobalState();
    const stripes = useStripes();

    useEffect(() => {
        stripes.setLocale(state.lang);
    }, [state.lang]);

    return null;
}